package com.exam.control;
import com.exam.utils.JdbcControl;
import com.exam.view.ShowChoiceOrWrite;

import java.sql.SQLException;

public class ShowQuestion extends ShowChoiceOrWrite {
    public static void showChoice(int questionNumber) throws SQLException {
        JdbcControl.returnSetRs("*","choice_question","questionNumber="+questionNumber);
        while(JdbcControl.getRs().next()) {
            //还需要根据题目类型不同 进行不同的show
            choice();
        }
    }
    public static void showWrite(int questionNumber) throws SQLException {
        JdbcControl.returnSetRs("*","write_question","questionNumber="+questionNumber);
        while(JdbcControl.getRs().next()){
            //要么选择 要么填空
            write();
        }
    }
}
